package xjh.him.netty.dto;

import java.util.List;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import xjh.him.entity.ChatMsg;

public class ChatMsgDto {
    @Data
    public static class InsertReq {
        Integer chatId;
        Integer userId;
        Integer chatterId;
        Byte type;
        String content;
    }

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class SelectPageReq {
        Integer chatId;
        Integer page;
    }

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class SelectPageResp {
        Integer page;
        List<ChatMsg> chatMsgList;
    }

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class NotifyMsg {
        Integer chatId;
        Integer userId;
        Integer chatterId;
        Byte type;
        String content;
    }

    @Data
    public static class FileUploadReq {
        int type;
        String suffix;
        byte[] bytes;
    }

    @Data
    public static class FileUploadResp {
        String fileUrl;
    }
}
